package rad.framework.mda.generator.template.main.resources.metainf;

public class JbossDD
{
  protected static String nl;
  public static synchronized JbossDD create(String lineSeparator)
  {
    nl = lineSeparator;
    JbossDD result = new JbossDD();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\"?>" + NL + "<jboss>" + NL + "    <!-- for JBossWS security to work this must be defined as an annotation in the beans" + NL + "    <security-domain>rad-framework</security-domain>" + NL + "    -->" + NL + "</jboss>";
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
